#!/bin/bash
#shellcheck disable=SC2068
#shellcheck disable=SC2086

images=(kube-controller-manager:v1.18.20 kube-apiserver:v1.18.20 kube-proxy:v1.18.20 kube-scheduler:v1.18.20 coredns:1.6.7 etcd:3.4.3-0)
for image in ${images[@]} ; do
  docker pull registry.cn-hangzhou.aliyuncs.com/syuee/$image
  docker tag registry.cn-hangzhou.aliyuncs.com/syuee/$image k8s.gcr.io/$image
  docker rmi registry.cn-hangzhou.aliyuncs.com/syuee/$image
done